package com.soriya.nestlive.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.soriya.nestlive.entity.LiveEntity;
import com.soriya.nestlive.entity.vo.LiveDetailVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LiveMapper extends MPJBaseMapper<LiveEntity> {
    List<LiveDetailVo> selectByCategoryId(Long categoryId, @Param("position") Integer position, @Param("size") Integer size);

    int selectByCategoryIdCount(Long categoryId);
}
